package com.example.demo.api;


import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.HashMap;
import javax.servlet.http.HttpServletRequest ;
import java.util.List;
import java.util.Map;

@Api(tags ="测试接口")
@RestController
public class ParkingLottest {


    @RequestMapping(value="/parking",method = {RequestMethod.GET,RequestMethod.POST})
    public List<CarStation> Parkstation(){

        ArrayList list = new ArrayList();
        list.add(new CarStation("s1",1)) ;
        list.add(new CarStation("s2",0)) ;
        list.add(new CarStation("s3",0)) ;


        return list ;
    }
}
